const express = require('express')
const app = express()

// 创建get请求
app.get('/user/info', (req, res) => {
  res.json({
    code: 200,
    message: {
      name: '张三',
      age: 18
    }
  })
})

app.listen(4000)